package com.yu;

import com.yu.dao.BooDao;
import com.yu.service.BookService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");

        BooDao bookDao = (BooDao) context.getBean("bookDao");

        BookService bookSeivice = (BookService) context.getBean("bookSeivice");

        String booker = bookDao.booker();
        System.out.println(booker);
        System.out.println("=====================");
        bookSeivice.bookTest();
    }
}
